Avoid uninitialized variables
authorMatthias Clasen <mclasen@redhat.com>
Sat, 13 Jun 2015 21:57:19 +0000 (17:57 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Jun 2015 01:10:26 +0000 (21:10 -0400)
clang complains that these may be used uninitialized.

gtk/gtkplacessidebar.c

index f767e14969b2e219da90650afc322fe7f34f090a..0255ed15f971ae0c4b10fd6b1dc1ed124af56b42 100644 (file)
@@ -1701,8 +1701,8 @@ start_drop_feedback (GtkPlacesSidebar        *sidebar,
           GtkTreeIter iter;
           GtkTreeIter iter_prev;
           GtkTreePath *path_prev;
-          gint new_bookmark_col_index;
-          SectionType section_type;
+          gint new_bookmark_col_index = 0;
+          SectionType section_type = SECTION_BOOKMARKS;
 
           /* Use column index of previous bookmark to calculate index for "new bookmark" */
           path_prev = gtk_tree_path_new_from_indices (sidebar->new_bookmark_index - 1, -1);